{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><a href="{:url('auction/index')}"><strong>竞价拍卖列表</strong></a></li>
	</ol>
</div>
<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('select')}">	
			<div class="form-group">
				&nbsp;&nbsp;
				标题<input id='title' name='title'   type='text' placeholder="请输入标题" class="bank" />
				时间<input id='start_time' name='start_time'  style="width: 120px;" onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />
				<input id='end_time' name='end_time'  style="width: 120px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />				
				商家<input id='store_name' name='store_name'   type='text' placeholder="请输入商家" class="bank" />
				状态<select name="status" class="bank">
					<option value="0">全部</option>
					<option value="1">进行中</option>
					<option value="2">关闭</option>
				</select>
				<span class="bank"><button type="submit"  class="btn btn-sm btn-primary"> 查询</button> </span>
			</div>
		</from>
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
<!--						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加文章分享</a>-->
					</div>
				</div>
			</div>
		</div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th>商品竞拍标题</th>
                                <th>商品图片</th>
                                 <th>商家</th>
                                <th>市场价</th>
                                <th>起拍价</th>
								<th>开始时间</th>
								<th>结束时间</th>
								<th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td>{$ad.title}</td>
                        		<td><img src="{$ad.thumb}"  width="50px"/></td>
                        		<td>{$ad.store_name}</td>
                        		<td>{$ad.market_price}</td>
                        		<td>{$ad.pai_price}</td>
                        		<td>{$ad.start_time}</td>
                        		<td>{$ad.end_time}</td>
                        		<td>
                        			{if $ad.status == 1}
                        		 	进行中
                        		 	{else}
                        		 	关闭
                        		 	{/if}
                        		</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 查看</a>&nbsp;&nbsp;
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
    margin-right:10px;
    margin-left:10px;
}
</style>
{/block}